<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>v-text & v-html实例</title>
    <script src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>v-text & v-html实例</h1>
    <hr/>
    <div id="app">
        <span v-text="message"></span>
        <br>
        <span v-html="content"></span>
    </div>

    <script>
        var app = new Vue({
            el: '#app',
            data: {
                message: "message 内容",
                content: "<h2>带标签的内容</h2>"
            },
           
        });

    </script>

</body>
</html>